<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<html>
<head>
    <jsp:include page="/static/common/common.jsp"/>
    <!--department js代码-->
    <script src="/static/js/classroom.js"></script>
    <title>教室管理</title>


</head>
<body>
<%--数据表格--%>
<table id="datagrid">
</table>

<%--dept_toolbar工具框--%>
<div id="toolbar">
    <a class="easyui-linkbutton" iconCls="icon-add" plain="true"
       data-cmd="add">新增</a>
    <a class="easyui-linkbutton" iconCls="icon-edit" plain="true"
       data-cmd="edit">编辑</a>
    <a class="easyui-linkbutton" iconCls="icon-view" plain="true" data-cmd="watch">查看</a>
    <a id="state_btn" class="easyui-linkbutton" iconCls="icon-tip" plain="true"
       data-cmd="changeState">启用</a>
    <input id="ss" class="easyui-searchbox"
           data-options="searcher:search,prompt:'教室名查询...'" name="keyword">
</div>
<div id="class_btns">
    <a class="easyui-linkbutton" iconCls="icon-cancel" plain="true" data-cmd="ensure">确定</a>
</div>




<%--弹出框--%>
<div id="dialog" align="center">
    <form id="form" method="post">
        <input type="hidden" name="id" id="id">
        <table align="center" style="margin-top: 15px">
            <tbody>
            <tr>
                <td>教室名称:</td>
                <td><input name="sn" class="easyui-textbox"
                           prompt="请输入教室名称"
                           invalidMessage="教室名称已存在"
                           validType="remote['/classroom/validateName.do?id='+id.value,'name']">
                </td>
            </tr>
            <tr>
                <td>教室地址:</td>
                <td><input name="address" class="easyui-textbox"
                           prompt="教室地址:"></td>
            </tr>
            <tr>
                <td>座位数:</td>
                <td><input name="seating" class="easyui-numberbox"
                           prompt="座位数:"></td>
            </tr>
            <tr>
                <td>教室状态:</td>
                <td><input name="state" class="easyui-combobox"
                           data-options="panelHeight:'auto', valueField:'value',textField:'text',
                        data:[{text:'启用中',value:'1'},{text:'停用了',value:'0'}]"></td>
            </tr>
            <tr>
                <td>教室标语:</td>
                <td><input name="sn" class="easyui-textbox"
                           prompt="教室标语:"></td>
            </tr>
            </tbody>
        </table>
    </form>
</div>

<div id="class_dialog">
    <table id="class_datagrid">
    </table>
</div>



</body>
</html>
